﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Caifu.Clients;

namespace Caifu.WebAdmin.Funds
{
	public partial class Index : System.Web.UI.Page
	{
		protected int m_I;
		protected int m_FundType;

		protected void Page_Load(object sender, EventArgs e)
		{
			m_FundType = Itfort.Web.RequestUtil.ToInt32("fundtype");
			var dataSource = FundClient.GetFunds(1, Int32.MaxValue);
			if (m_FundType != 0)
			{
				dataSource = dataSource.Where(p => p.FundType == m_FundType).ToList();
			}
			this.Repeater1.DataSource = dataSource;
			this.Repeater1.DataBind();
		}
	}
}